package com.elastic.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


import java.io.Serializable;

/**
 * @Author: Chenyw
 * @Date: 2022/10/14/15:48
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "map_geo")
public class GeoEntity implements Serializable {
    @Id
    private String id;

    private String name;

    private EsGeoPoint location;
}
